package com.echoplots.echoplotsspringbootstart;

import com.echoplots.echoplotsspringbootstart.properties.EchoPlotsBean;
import com.echoplots.echoplotsspringbootstart.properties.EchoPlotsConfigBean;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ImportResource;


@SpringBootApplication
//启用EchoPlotsBean和EchoPlotsConfigBean配置
@EnableConfigurationProperties({EchoPlotsBean.class,EchoPlotsConfigBean.class})
public class EchoplotsSpringBootStartApplication {

	public static void main(String[] args) {
		//SpringApplication.run(EchoplotsSpringBootStartApplication.class,args);
		SpringApplication app = new SpringApplication(EchoplotsSpringBootStartApplication.class);
		//关闭banner
		//app.setBannerMode(Banner.Mode.OFF);
		//设置配置不被命令行修改  java -jar xxx.jar --server.port=8081
		app.setAddCommandLineProperties(false);
		app.run(args);

	}

}
